#pragma once

#include <QDialog>
#include "ui_SettingParam.h"
#include "PackDefine.h"

class BTEServer;
class SettingParam : public QDialog
{
	Q_OBJECT

public:
	SettingParam(QWidget *parent = Q_NULLPTR);
	~SettingParam();

	int clientIndex;
	BTEServer *server;

	void setParam(stru_PACK_READ_PARAM_RESP param);

protected slots:
	void on_btnRead_clicked();
	void on_btnWrite_clicked();
	void on_btnExit_clicked();

private:	
	void showEvent(QShowEvent *event) override;

	stru_PACK_READ_PARAM_RESP m_param;
	bool m_paramVaild;
	QVector<int> m_voltList;	

	Ui::SettingParam ui;
};
